x86/mm: move guest_physmap_{add,remove}_page()
authorJan Beulich <jbeulich@suse.com>
Thu, 7 Apr 2022 06:30:36 +0000 (08:30 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 7 Apr 2022 06:30:36 +0000 (08:30 +0200)
commit0e58a6ceb6ef4e0c47acd3c7e48bb904c4d1a0a8
treec414c883584b088e3ccf84581996e87e5b22bb4c
parentfa4b4fa61debfde019e3e145e39706c4652d1c32
x86/mm: move guest_physmap_{add,remove}_page()

... to a new file, separating the functions from their HVM-specific
backing ones, themselves only dealing with the non-translated case.

To avoid having a new CONFIG_HVM conditional in there, do away with
the inline placeholder.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/arch/x86/mm/Makefile
xen/arch/x86/mm/p2m.c
xen/arch/x86/mm/physmap.c [new file with mode: 0644]
xen/include/xen/p2m-common.h